/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package br.ufpe.cin.dmo4.middleware.message;

import java.util.List;

/**
 *
 * @author Danilo
 */
public class RequestMessage extends Message{

    private int requestId;
    private boolean responseExpected;
    private String objectKey;
    private String operation;
    private List<Object> body;

    RequestMessage() {
    }

    public RequestMessage(int requestId, boolean responseExpected, String objectKey, String operation, List<Object> body) {
        super(REQUEST);
        this.requestId = requestId;
        this.responseExpected = responseExpected;
        this.objectKey = objectKey;
        this.operation = operation;
        this.body = body;
    }

    public List<Object> getBody() {
        return body;
    }

    public boolean isResponseExpected() {
        return responseExpected;
    }

    public String getObjectKey() {
        return objectKey;
    }

    public String getOperation() {
        return operation;
    }

    public int getRequestId() {
        return requestId;
    }            
    
}
